package com.ssm.dto.mybatis;

public class Employee {
	private int id;
	private String name;
	private String password;
	private Dept dept;

	// CREATE TABLE `employee` (
	// `id` int(11) NOT NULL AUTO_INCREMENT,
	// `name` varchar(40) DEFAULT NULL,
	// `dept_id` int(11) NOT NULL,
	// PRIMARY KEY (`id`)
	// ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Dept getDept() {
		return dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	@Override
	public String toString() {
		return "id:" + id + "-name:" + name + "-password:" + password;
	}
}
